<template>
  <div class="page-header col-xs-offset-2 col-xs-8">
      <h2>Vue的redirect路由重定向</h2>
      <button @click="Previousstep">⬅回退</button>&nbsp;
      <button @click="nextstep">前进➡</button>&nbsp;
      <button @click="jump">跳转</button>&nbsp;
  </div>
</template>

<script>
  export default {
      name:'Header',
     methods: {
         Previousstep(){
            this.$router.back()
         },
          nextstep(){
            this.$router.forward()
         },
          jump(){
            this.$router.go(-3)
         }
     },
  }
</script>

<style scoped>
  
</style>